
package com.epam.webproject.restaurant.jaxb.entities;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;


@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
        "restaurantBill"
})
@XmlRootElement(name = "bills", namespace = "http://www.example.com/bills")
public class Bills {

    @XmlElement(required = true)
    //protected List<Bill> restaurantBill = new ArrayList<Bill>();
    public List<Bill> restaurantBill = new ArrayList<Bill>();

    public List<Bill> getRestaurantBill() {
        if (restaurantBill == null) {
            restaurantBill = new ArrayList<Bill>();
        }
        return this.restaurantBill;
    }
}
